 
<div id="div_users_page" style="width:100%" ></div>
<div id="div_role_users_edit" style="width:700px;" ></div>

<script type="text/javascript">
var users;
var pageno = 1;
if (users) { pageno = users.findCurrentPage(); }
new MUI.Require({
  js: [MUI.path.plugins + 'mochaList/List.js'],
  onload: function(){
	var dataURL = '/data/sc.action';//取数据的url
	var dataURLParams = {"scid":"user_1","pageno":1};//要传给dataURL的参数
	var instanceName = 'users';//MUI.List实例名称
	var divId = "users_list";//要填充的div编号
	var columns = [{text:'序号',name:'id'},{text:'用户名',name:'username'},
			{text:'真实姓名',name:'realname'},{text:'邮件',name:'email'},
			{text:'性别',name:'gender_cn'},{text:'电话',name:'phone'},
			{text:'创建时间',name:'createtime'},{text:'结束时间',name:'endtime'},
			{text:'状态',name:'state_cn'},
			{text:'所属角色',name:'roles',cols:['rolename'],colsSeparator:'<br>'}
			];//要显示的字段
	if (!users){
	users = new MUI.List({
		instanceName:instanceName,
       	container:'div_users_page',
       	showCheckBox:true,
		showCommand:false,
       	id:divId,
       	columns:columns,
       	dataURL:dataURL,
       	dataURLParams:dataURLParams,
       	commands:[],
       	onItemCommand: function(item,self,cmd,img) {},
       	onItemChecked: function(item,self,cmd,img) {},
       	onItemSelected: function(item,self,cmd,img) {},
       	onItemColumnBound: function(item,self,col,td) {}
   	});//MUI.List
   	}
   	users.findList(pageno);
  }//onload
});//MUI.Require

</script>